package org.dreamwork.jasmine2.web.client;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 12-4-26
 * Time: 下午6:03
 */
public class DeviceTypeUtil {
    public static DeviceType getDeviceType (Architecture arch) {
        switch (arch) {
            case Android: return DeviceType.Android;
            case IPad:    return DeviceType.IPAD;
            case IPhone:  return DeviceType.IPHONE;
            default:      return DeviceType.Computer;
        }
    }
}
